<template>
  <div>欢迎回来</div>
  <div style="display: flex; height: 100vh">
    <div style="width: 15vw">
      <div style="cursor: pointer" @click="toPage('/dashboard/stuManeger')">
        学生管理
      </div>
      <div style="cursor: pointer" @click="toPage('/dashboard/score')">
        学习成绩管理
      </div>
      <div style="cursor: pointer" @click="toPage('/dashboard/zhszScore')">
        综合素质分管理
      </div>
    </div>
    <div style="width: 85vw">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup>
import { ref, reactive } from "vue";
import { useRouter, useRoute } from "vue-router";
import axios from "axios";
import { AdminStore } from "../../stores/AdminStore";
import { useMessage } from "naive-ui";

const message = useMessage();
const router = useRouter();
const route = useRoute();
const adminStore = AdminStore(); //实例化AdminStore

const toPage = (path) => {
  router.push({ path: path });
};
</script>

<style lang="scss" scoped></style>
